package cn.jy.finanlle.service.impl;


import cn.jy.common.domain.vo.ExpressExchangeVo;
import cn.jy.finanlle.mapper.ExpressExchangeMapper;
import cn.jy.finanlle.service.ExpressExchangeService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExpressExchangeServiceImpl implements ExpressExchangeService {
    @Autowired
    private ExpressExchangeMapper expressExchangeMapper;

    @Override
    public PageInfo<ExpressExchangeVo> selectListExpressExchange(ExpressExchangeVo expressExchangevo) {
        PageHelper.startPage(expressExchangevo.getPageNum(),expressExchangevo.getPageSize());
        List<ExpressExchangeVo> expressExchangeVos = expressExchangeMapper.selectListExpressExchange(expressExchangevo);
        PageInfo<ExpressExchangeVo> expressExchangeVoPageInfo = new PageInfo<>(expressExchangeVos);
        return expressExchangeVoPageInfo;
    }
}
